package com.company;

import redis.clients.jedis.Jedis;

public class Main {

    public static void main(String[] args) {
        //连接本地的 Redis 服务
        MyJedis myJedis = new MyJedis("192.168.168.168",null);
        Jedis jedis = myJedis.jedis;
        //查看服务是否运行
        System.out.println("Server is running: "+jedis.ping());

        // 测试
        jedis.set("test","123");
        System.out.println("test: "+jedis.get("test"));
    }
}
